#ifndef AHT20_H
#define AHT20_H

/** HAL HEADER INCLUDE*/
#include "stm32h7xx_hal_i2c.h"
#include "stm32h7xx_hal_i2c_ex.h"
/** HAL HEADER INCLUDE*/

#include "main.h"

#define _AHT20_WRITE_ADDR   0x70
#define _AHT20_READ_ADDR    0x71

void AHT20_Init(I2C_HandleTypeDef AHT20_I2C_Handle);
uint8_t AHT20_ReadStatus();
void AHT20_Calibrate();
void AHT20_ReadData(float* rh, float* temp);

#endif
